<?php
/**
 * @version SVN: $Id: install.php 1174 2010-04-26 14:51:33Z elkuku $
 * @package    EasyCreator
 * @subpackage Views
 * @author		EasyJoomla {@link http://www.easy-joomla.org Easy-Joomla.org}
 * @author		Nikolai Plath {@link http://www.nik-it.de}
 * @author		Created on 14-Oct-2009
 * @license    GNU/GPL, see JROOT/LICENSE.php
 */

//-- No direct access
defined('_JEXEC') or die('=;)');

?>
<script type="text/javascript">
function submitInstallForm()
{
    if($('install_package').value == '')
    {
        alert(JSLNG_SELECT_A_PACKAGE_TO_UPLOAD);

        return;
    }

	document.installForm.submit();
}
</script>

<br />
<?php ecrHTML::floatBoxStart(); ?>
<h2><?php echo JText::_('Install templates'); ?></h2>
<div class="ecrBigInfo"><?php echo JText::_('Select a template package to import'); ?></div>

<br />
<form enctype="multipart/form-data" action="index.php" method="post" name="installForm">
	<div>
    <label for="install_package"><?php echo JText::_('Package File'); ?></label>

    <input class="input_box" id="install_package" name="install_package" type="file" size="57" />
    <input class="button" type="button" value="<?php echo JText::_('Upload and install package' ); ?>" onclick="submitInstallForm();" />

    <input type="hidden" name="option" value="com_easycreator" />
    <input type="hidden" name="controller" value="templates" />
    <input type="hidden" name="task" value="do_install" />
	</div>
</form>

<?php ecrHTML::floatBoxEnd(); ?>

<div style="clear: both;"></div>

</div><!-- Div from outer -->

<?php
